import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import ElementUI from 'element-ui';
import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);
import '@/assets/reset.css'
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)
axios.defaults.baseURL = "http://localhost:3000/";

axios.defaults.withCredentials = true;  //允许http请求携带cookie
axios.defaults.crossDomain = true;  //允许跨域访问cookie(这行代码可以不要)

Vue.prototype.$http = axios;
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
